package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 播种墙
 * </p>
 *
 * @author long
 * @since 2024-12-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_sow_wall")
public class SowWallDo extends Model<SowWallDo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    private Long tenantId;

    @TableField(value = "wh_id", fill = FieldFill.INSERT)
    private Long whId;

    /**
     * 播种墙编码
     */
    @TableField("sow_code")
    private String sowCode;

    /**
     * 层数
     */
    @TableField("tier_num")
    private Integer tierNum;

    /**
     * 列数
     */
    @TableField("column_num")
    private Integer columnNum;

    /**
     * 是否被使用 0否 1是
     */
    @TableField("in_use")
    private Boolean inUse;

    @TableField("in_use_wave_no")
    private String inUseWaveNo;


    @TableField("remark")
    private String remark;

    /**
     * 最后修改人
     */
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    /**
     * 最后修改人名
     */
    @TableField(value = "update_by_name", fill = FieldFill.INSERT_UPDATE)
    private String updateByName;

    /**
     * 最后修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
